package lab02.test36;

public abstract class Student {
    String name;
    String sort;
    double english;
    double math;
    double chinese;

    public Student(){}

    public Student(String name,String sort,double english,double math,double chinese){

        this.chinese=chinese;
        this.english=english;
        this.math=math;
        this.sort=sort;
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public double getEnglish() {
        return english;
    }

    public void setEnglish(double english) {
        this.english = english;
    }

    public double getMath() {
        return math;
    }

    public void setMath(double math) {
        this.math = math;
    }

    public double getChinese() {
        return chinese;
    }

    public void setChinese(double chinese) {
        this.chinese = chinese;
    }

    public double average(double english,double math,double chinese){
        return (english+math+chinese)/3;
    }


    public abstract void underGrade();

    public abstract void postGrade();
}
